package com.zby.demo.dao;

import com.zby.demo.entity.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author ChrisPhantom
 * @CreateDate 2020/12/14 18:17
 */

@Mapper
public interface NoticeDao {
    //增加公告
    void addNotice(@Param("notice") Notice notice);

    //根据公告ID删除公告
    void deleteNotice(@Param("noticeId") String noticeId);

    //修改公告内容
    void updateNotice(@Param("notice") Notice notice);

    //按等级查询所有公告
    List<Notice> queryAllNotice();
}
